﻿#region Opis pliku
//-----------------------------------------------------------------------------
// TankShotEmitter.cs
// Autor: Jan Czarnowski
// 7.11.2012
//-----------------------------------------------------------------------------
#endregion

#region Using..

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

#endregion

namespace pogra
{
    /// <summary>
    /// 
    /// </summary>
    class TankShotEmitter : Emitter
    {
        #region pola

        private Tank tank;

        #endregion

        #region inicjalizacja

        /// <summary>
        /// 
        /// </summary>
        /// <param name="position"></param>
        /// <param name="particleBase"></param>
        /// <param name="tank"></param>
        public TankShotEmitter(Vector2 position, Texture2D particleBase, Tank tank) : base(position, particleBase)
        {
            this.tank = tank;
            life = TimeSpan.FromSeconds(2);
        }

        #endregion

        #region logika

        protected override bool deathLogic()
        {
            // metoda zwraca false jesli czasteczka umiera a true jesli wciaz zyje
            return false;
        }

        protected override void GenerateParticles()
        {
            
        }

        protected override void miniUpdate(TimeSpan gameTime)
        {
            // aktualizowanie pozycji emitera
        }

        #endregion
    }
}
